<?php
$this->widget('zii.widgets.grid.CGridView', array(
    'id' => 'document-grid',
    'dataProvider' => $model->allJobs(),
    'columns' => array(
        'handle_date:date:Handling on',
        'type:text:Type',
        'handled_by:text:Name',
        'complete_date:text:Complete on',
        array(
            'class'=>'CButtonColumn',
            'viewButtonOptions'=>array('id'=>'view'),
            'deleteButtonUrl'=>'CHtml::normalizeUrl(array("/documents/delete","id"=>$data->id))',
            'deleteButtonOptions'=>array('id'=>'delete'),
        )
    ),
));
?>
